﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeBehind="PowerUser.aspx.cs"  Inherits="ShowRoom.admin.ctrJs.PowerUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="../js/jsPowerUser.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 100%; float: left; margin-top: 10px;">
      <asp:Literal ID="litSpliter1" runat="server" Text="<#BreakChar#>"></asp:Literal>
        <asp:Literal ID="litSpliter2" runat="server" Text="<#BreakChar#>"></asp:Literal> 
        <asp:GridView ID="gvpowerUser" runat="server" Width="100%" BorderWidth="1px" 
            BorderColor="#CCCCCC" AutoGenerateColumns="false" DataKeyNames="mn_id" 
            onrowdatabound="gvpowerUser_RowDataBound" 
            onrowcreated="gvpowerUser_RowCreated">
            <HeaderStyle BackColor="#E1E1E1" BorderWidth="1px" BorderColor="#CCCCCC" Height="33px" ForeColor="#195B8E" />
            <EditRowStyle BorderColor="Silver" BorderWidth="1px" Height="25px" />
            <AlternatingRowStyle BorderColor="" BorderWidth="1px"/>
            <RowStyle BorderColor="#E1E1E1" BorderWidth="1px" Height="25px" BackColor="white" />
            <EmptyDataRowStyle BorderColor="Silver" BorderWidth="1px" />
            <PagerStyle BorderStyle="None"></PagerStyle>
            <PagerSettings Visible="false" />
            <Columns>
                <asp:TemplateField HeaderText="no" ItemStyle-HorizontalAlign="center" ItemStyle-BorderWidth="1px" ItemStyle-BorderColor="#E1E1E1" ItemStyle-Width="7%" HeaderStyle-Width="7%">
                    <ItemTemplate>
                        <%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>                           
                </asp:TemplateField>  
                <asp:TemplateField HeaderText="menu" ItemStyle-Height="30px" ItemStyle-BorderWidth="1px" ItemStyle-BorderColor="#E1E1E1"  ItemStyle-HorizontalAlign="Center"> 
                     <ItemTemplate>                                         
                         <asp:Label ID="lblsmenu" runat="server" Text='<%# Bind("mn_nm") %>' ></asp:Label>                                                                                  
                    </ItemTemplate>
                </asp:TemplateField>                                              
                  <asp:TemplateField HeaderText="xem" ItemStyle-Height="30px" ItemStyle-BorderWidth="1px" ItemStyle-BorderColor="#E1E1E1"  ItemStyle-HorizontalAlign="Center"> 
                     <ItemTemplate>  
                           <a onclick="CheckPowerUser('<%=Request["user_id"] %>','<%#Eval("mn_id")%>','<%#Eval("chk_view")%>','<%#Eval("chk_add")%>','<%#Eval("chk_edit")%>','<%#Eval("chk_del")%>','0');"  style="border-width: 0px; border-style: none; cursor: pointer">    
                                   <asp:CheckBox ID="chkView" runat="server" />                          
                         </a>                            
                        <%-- <asp:CheckBox ID="chkView" onclick="CheckPower(this,'<%# Eval("mn_id")%>')" runat="server"  />    --%>                                    
                    </ItemTemplate>
                </asp:TemplateField>
                  <asp:TemplateField HeaderText="thêm mới"  ItemStyle-BorderWidth="1px" ItemStyle-BorderColor="#E1E1E1"  ItemStyle-HorizontalAlign="Center"> 
                     <ItemTemplate >                                         
                        <a onclick="CheckPowerUser('<%=Request["user_id"] %>','<%#Eval("mn_id")%>','<%#Eval("chk_view")%>','<%#Eval("chk_add")%>','<%#Eval("chk_edit")%>','<%#Eval("chk_del")%>','1');"  style="border-width: 0px; border-style: none; cursor: pointer">    
                            <asp:CheckBox Enabled="false" ID="chkAdd" runat="server" />
                        </a>                                           
                    </ItemTemplate>
                </asp:TemplateField>                                      
                 <asp:TemplateField HeaderText="chỉnh sữa"  ItemStyle-BorderWidth="1px" ItemStyle-BorderColor="#E1E1E1" ItemStyle-HorizontalAlign="Center"> 
                     <ItemTemplate >                                         
                         <a onclick="CheckPowerUser('<%=Request["user_id"] %>','<%#Eval("mn_id")%>','<%#Eval("chk_view")%>','<%#Eval("chk_add")%>','<%#Eval("chk_edit")%>','<%#Eval("chk_del")%>','2');"  style="border-width: 0px; border-style: none; cursor: pointer">    
                            <asp:CheckBox Enabled="false" ID="chkEdit" runat="server" />  
                         </a>                                          
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="xóa"  ItemStyle-BorderWidth="1px" ItemStyle-BorderColor="#E1E1E1"  ItemStyle-HorizontalAlign="Center"> 
                     <ItemTemplate>                                         
                         <a onclick="CheckPowerUser('<%=Request["user_id"] %>','<%#Eval("mn_id")%>','<%#Eval("chk_view")%>','<%#Eval("chk_add")%>','<%#Eval("chk_edit")%>','<%#Eval("chk_del")%>','3');"  style="border-width: 0px; border-style: none; cursor: pointer">    
                            <asp:CheckBox Enabled="false" ID="chkDel" runat="server" /> 
                         </a>                                                
                    </ItemTemplate>
                </asp:TemplateField>                
            </Columns>
        </asp:GridView>
    </div>    
    </form>
    
</body>
</html>
